package com.example.bootcurriculumproject.service.impl;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.bootcurriculumproject.entity.User;
import com.example.bootcurriculumproject.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserService {
    @Autowired
    UserMapper userMapper;
    public void insertUser(User user){
        userMapper.insert(user);
    }
    public void updateUser(User user){
        userMapper.updateUser(user);
    }
    public void deleteUser(String uid){
        userMapper.deleteUser(uid);
    }
    public User selectByUid(String uid){
        return userMapper.selectByUid(uid);
    }
    public int getStatus(String uid){
        return userMapper.getStatus(uid);
    }
    public boolean updateStatus(String uid,int status){
        userMapper.updateStatus(uid,status);
        return true;
    }

}

